import threading
import time


def run():
    for i in range(1,11):
        time.sleep(1)
        print(i)
def run2():
    for i in ["a","b","c","d","e","f","g","h","i","j"]:
        time.sleep(1)
        print(i)
class MyThread(threading.Thread):
    def run(self):
        for i in range(1,11):
            print(i)
            time.sleep(1)
if __name__ == "__main__":
    # 创建一个线程对象
    # thread1 = threading.Thread(target=run)
    # thread2 = threading.Thread(target=run2)
    # thread1.start()
    # thread2.start()
    thread3 = MyThread()
    thread4 = MyThread()
    thread3.start()
    thread4.start()